package com.lanchetech.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 树苗参数
 */
@ApiModel(value = "com-lanchetech-entity-Sapling")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Sapling implements Serializable {
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 树苗名称
     */
    @ApiModelProperty(value = "树苗名称")
    private String name;

    /**
     * 描述介绍
     */
    @ApiModelProperty(value = "描述介绍")
    private String description;

    /**
     * 树苗参数JSON
     */
    @ApiModelProperty(value = "树苗参数JSON")
    private String feature;

    /**
     * 奖励描述
     */
    @ApiModelProperty(value = "奖励描述")
    private String reward;

    /**
     * 农场产品id
     */
    @ApiModelProperty(value = "农场产品id")
    private Long farmProductId;

    /**
     * 兑换所需数量，暂时定为积分
     */
    @ApiModelProperty(value = "兑换所需数量，暂时定为积分")
    private BigDecimal amount;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;

    /**
     * 树苗状态 0 已下架 1 已上架
     */
    @ApiModelProperty(value = "树苗状态 0 已下架 1 已上架")
    private Byte status;

    /**
     * 已领取数量
     */
    @ApiModelProperty(value = "已领取数量")
    private Integer sales;

    /**
     * 库存数量
     */
    @ApiModelProperty(value = "库存数量")
    private Integer stock;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sorts;

    private static final long serialVersionUID = 1L;
}